package com.master.demo.generator.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.master.demo.generator.mapper.GenTableColumnMapper;
import com.master.demo.generator.pojo.entity.GenTableColumn;
import com.master.demo.generator.service.IGenTableColumnService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 业务字段 服务实现类
 *
 * @author: Yang
 * @date: 2023/01/31
 * @version: 1.0.0
 * https://www.panday94.xyz
 * Copyright Ⓒ 2023 曜栋网络科技工作室 Limited All rights reserved.
 */
@DS("slave_1")
@Service
public class GenTableColumnServiceImpl implements IGenTableColumnService {
    @Autowired
    private GenTableColumnMapper genTableColumnMapper;

    @Override
    public List<GenTableColumn> listGenTableColumnByTableId(Long tableId) {
        return genTableColumnMapper.listGenTableColumnByTableId(tableId);
    }

}
